import { Component, OnInit } from '@angular/core';

import { ArticleWrite } from './shared/article-write.model';
import { ArticleWriteService } from './shared/article-write.service';

@Component({
	selector: 'article-write',
	templateUrl: 'article-write.component.html',
	providers: [ArticleWriteService]
})

export class ArticleWriteComponent implements OnInit {
	articleWrite: ArticleWrite[] = [];

	constructor(private articleWriteService: ArticleWriteService) { }

	ngOnInit() {
		this.articleWriteService.getList().subscribe((res) => {
			this.articleWrite = res;
		});
	}
	keyupHandlerFunction(content:any){
		console.log("xieru"+content);
	}
}